<template>
	<view class="">
		<an-nav-bar :title="title"> </an-nav-bar>
		<!-- <sortFilter /> -->
		<!-- <view style="height: 80rpx;"></view> -->
		<view class="list">
			<view class="item flex" v-for="(item,index) in speciaTechnician" :key="item.id"
				@click="GotoUrl('/pages/technicianDetail/technicianDetail?id=' + item.id)">
				<view class="left">
					<image class="img" :src="$common.binImage(item.headImg)" mode="aspectFill"></image>
				</view>
				<view class="right">
					<view class="memberInfo">
						<view class="name_data flex">
							<view class="uni-label-pointer">{{item.nickName ||'幸福用户'}}</view>
							<!-- <view class="distance flex">{{$common.distance(item.distance)}}</view> -->
							<view class="text">{{item.jobTitle||''}}</view>
						</view>
						<view style="padding: 10rpx 0 0;">
							<!-- <view class="store flex iconfont">珍萃坊养生</view> -->
							<!-- <view class="uni-label-pointer">人脸对比相似度82%</view> -->
							<view style="color: #666;">最近接单{{item.totalOrder||0}}单</view>
							<view style="color: #999;">{{item.personLabel}}</view>
						</view>
					</view>
					<!-- <view class="photos flex">
						<view class="img" v-for="(item,idx) in 3" :key="3">
							<image src="/upload/20220616/202206160901356940.jpg" mode=""></image>
						</view>
					</view> -->
				</view>
				<view class="btn">

				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import sortFilter from "../../components/sortFilter.vue"
	import indexConfig from '@/config/index.config';
	export default {
		components: {
			sortFilter
		},
		data() {
			return {
				title:'靠谱专区',
				speciaTechnician: []
			};
		},
		onLoad(option) {
			if (option.title){
				this.title = option.title
			}
			this.getList()
		},
		methods: {
			getList() {
				this.$http.get('/appNoAuth/store/massageTechnician/list', {
					status: 1,
					accountType: 1,
					mustStatus: 1,
				}).then(res => {
					this.speciaTechnician = res.rows
				})
			},
			GotoUrl(url) {
				uni.navigateTo({
					url: url
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.list {
		padding: 10rpx 0;

		.item {
			padding: 30rpx 0 30rpx 30rpx;
			align-items: flex-start !important;
			background-color: #fff;
			position: relative;

			.left {
				width: 120rpx;
				height: 120rpx;
				border-radius: 50%;
				margin-right: 20rpx;

				.img {
					width: 120rpx;
					height: 120rpx;
					border-radius: 50%;
				}
			}

			.right {
				flex: 1;
				padding: 0 30rpx 30rpx 0;
				border-bottom: 2rpx solid #eee;
				box-sizing: border-box;

				.photos {
					width: 100%;
					overflow: hidden;
					box-sizing: border-box;

					.img {
						width: 180rpx;
						height: 180rpx;
						position: relative;
						margin-right: 14rpx;

						&:last-child {
							margin-right: 0rpx;
						}

						image {
							width: 100%;
							height: 100%;
							border-radius: 10rpx;
						}
					}
				}

				.memberInfo {
					.store_data {
						white-space: nowrap;
						margin-bottom: 22rpx;

						.uni-label-pointer {
							font-size: 20rpx;
							font-weight: 400;
							color: #666;
							margin-right: 18rpx;
						}

						.text {
							font-size: 20rpx;
							font-weight: 400;
							color: #666;
						}

						.store {
							color: #666;
							font-size: 24rpx;
							margin-right: 18rpx;

							&::before {
								content: "";
								width: 26rpx;
								height: 24rpx;
								background: url(/static/shop-icon.png) no-repeat;
								background-size: 100% auto;
								margin-right: 6rpx;
							}

							&::after {
								content: '\e65f';
								font-weight: bold;
								font-size: 20rpx;

							}
						}
					}

					.name_data {
						margin-bottom: 8rpx;

						.uni-label-pointer {
							font-size: 30rpx;
							font-weight: 500;
							color: #000;
							margin-right: 20rpx;
						}

						.distance {
							font-size: 24rpx;
							font-weight: 400;
							color: #666;
							margin-right: 20rpx;

							&::before {
								content: "";
								width: 20rpx;
								height: 24rpx;
								background: url(/static/weizhi.png) no-repeat;
								background-size: 100% auto;
								margin-right: 8rpx;
							}
						}

						.text {
							padding: 0 10rpx;
							height: 30rpx;
							background: #dcb461;
							border-radius: 14rpx;
							font-size: 18rpx;
							font-weight: 400;
							color: #fff;
							line-height: 30rpx;
						}
					}
				}
			}
		}
	}
</style>
